# -*- coding: utf-8 -*-

from PyQt5.QtWidgets import QWidget,QApplication,QToolBox,QToolTip
import sys
from PyQt5.QtGui import QFont

class Info(QWidget):
    def __init__(self,parent = None):
        super(Info, self).__init__(parent)
        self.setUI()

    def setUI(self):
        QToolTip.setFont(QFont('SansSerif',10))
        self.setToolTip("Hello,我是气泡提示'清安'")
        self.setGeometry(200,300,400,300)
        self.setWindowTitle("气泡提示demo")

if __name__ == '__main__':
    app = QApplication(sys.argv)
    info = Info()

    info.show()
    sys.exit(app.exec_())